#include "UnFormattedObjectOutputStream.h"

namespace Entities {

UnFormattedObjectOutputStream::UnFormattedObjectOutputStream( ostream & _out ):
ObjectOutputStream(_out) {}

void UnFormattedObjectOutputStream::writeObject(const Serializable & obj, string name){
	obj.save(*this);
}

void UnFormattedObjectOutputStream::writeValue(string & value){
	out << value;
}

void UnFormattedObjectOutputStream::flush(){
	out.flush();
}

void UnFormattedObjectOutputStream::writeSeparator(){
	out << ' ';
}

}